package gg.com.toolbox.util;


/**
 * APP常量
 * Created by gaoge on 2017/10/11.
 */

public class AppConstant {

    /**
     * 一天的时间戳
     */
    public static final long oneDay = 86400000;

    /**
     * 今天是几号
     */
    public static String day = "";

    /**
     * 当前小时
     */
    public static String hour = "";

    /**
     * 当前分钟
     */
    public static String minute = "";

    /**
     * 上次响应时间
     */
    public static long time = 0;

    /**
     * 设置时间属性
     */
    public static void setData() {
        String str[] = DateUtils.getDate_YMdHm().replace(" ", "-").replace(":", "-").split("-");
        day=str[2];
        if(day.length()<2){
            day="0"+day;
        }
        hour=str[3];
        if(hour.length()<2){
            hour="0"+hour;
        }
        minute=str[4];
        if(minute.length()<2){
            minute="0"+minute;
        }
    }


}
